/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tsystems.school.utils;

/**
 *
 * @author 123
 */
public class Message {

    private String sender;
    private String receiver;
    private MessageType type;
    private String body;

    public Message() {
    }

    public Message(String sender, String receiver, MessageType type, String body) {
        this.sender = sender;
        this.receiver = receiver;
        this.type = type;
        this.body = body;
    }

    public String getSender() {
        return sender;
    }
    
    public String getReceiver() {
        return receiver;
    }
    
    public MessageType getType() {
        return type;
    }
    
    public String getBody() {
        return body;
    }
    
    public String toString() {
        return sender + ":\n" + body;
    }
}
